Contents | Index | < Browse | Browse >

LETTERmemsetULETTER Fills a memory block.

Overview
#include <string.h>

r = memset(dest,ch,n);

void *r;
void *dest;
int ch;
size_t n;

Portability
ANSI

Description
Fills the memory block which starts at "dest" and is "n" bytes long with the character "ch". Note that "ch" is written as a byte, not as a longword, as one could expect from the integer value passed.

Returns
A pointer to the filled memory block.